<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Battle: C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Joueur.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Battle
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Joueur.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#pragma once</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;Flotte.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;Utilitaire.h&quot;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="keyword">using namespace </span>std;
<a name="l00018"></a>00018 
<a name="l00023"></a>00023 <span class="keyword">class </span><span class="keyword">__declspec( dllexport )</span> <a class="code" href="class_joueur.html">Joueur</a> {
<a name="l00024"></a>00024 <span class="keyword">private</span> :
<a name="l00025"></a>00025         <span class="keywordtype">string</span> _nom;                                            
<a name="l00026"></a>00026         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _nbArtefacts;                      
<a name="l00027"></a>00027         vector&lt;Flotte*&gt; _flottes;                       
<a name="l00028"></a>00028         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _idxFlotteCourante;        
<a name="l00030"></a>00030 <span class="keyword">public</span>:
<a name="l00035"></a>00035         <a class="code" href="class_joueur.html">Joueur</a>();
<a name="l00036"></a>00036 
<a name="l00043"></a>00043         <a class="code" href="class_joueur.html">Joueur</a>(<span class="keywordtype">string</span>, <span class="keywordtype">string</span>);
<a name="l00044"></a>00044 
<a name="l00052"></a>00052         <a class="code" href="class_joueur.html">Joueur</a>(<span class="keywordtype">string</span>, <span class="keywordtype">string</span>, <span class="keywordtype">string</span>);
<a name="l00053"></a>00053         
<a name="l00059"></a>00059         <span class="keywordtype">string</span> getNom()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _nom; }
<a name="l00060"></a>00060 
<a name="l00066"></a>00066         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbArtefacts()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _nbArtefacts; };
<a name="l00067"></a>00067 
<a name="l00073"></a>00073         <span class="keywordtype">bool</span> hasArtefact()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;getNbArtefacts() &gt; 0; }
<a name="l00074"></a>00074 
<a name="l00080"></a>00080         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbFlottes() <span class="keyword">const</span>;
<a name="l00081"></a>00081 
<a name="l00087"></a>00087         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbVaisseaux()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getFlotteCourante()-&gt;getNbVaisseaux(); }
<a name="l00088"></a>00088         
<a name="l00094"></a>00094         <a class="code" href="class_flotte.html">Flotte</a>* getFlotteCourante()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _flottes[_idxFlotteCourante]; };
<a name="l00095"></a>00095 
<a name="l00101"></a>00101         Flotte::CouleurFlotte getCouleurFlotteCourante()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _flottes[_idxFlotteCourante]-&gt;getCouleurFlotte(); }
<a name="l00102"></a>00102 
<a name="l00108"></a>00108         Flotte::CouleurFlotte Joueur::getCouleurFlotte(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;_flottes[i]-&gt;getCouleurFlotte(); }
<a name="l00109"></a>00109 
<a name="l00115"></a>00115         <span class="keywordtype">void</span> setNom(<span class="keywordtype">string</span> nom) { _nom = nom; }
<a name="l00116"></a>00116 
<a name="l00121"></a>00121         <span class="keywordtype">void</span> addArtefact() { ++_nbArtefacts; }
<a name="l00122"></a>00122 
<a name="l00128"></a>00128         <span class="keywordtype">void</span> addFlotte(Flotte::CouleurFlotte c);
<a name="l00129"></a>00129 
<a name="l00134"></a>00134         <span class="keywordtype">void</span> flotteSuivante();
<a name="l00135"></a>00135 
<a name="l00142"></a>00142         vector&lt;unsigned int&gt; lancerDe() <span class="keyword">const</span>;
<a name="l00143"></a>00143 
<a name="l00144"></a>00144         <span class="keywordtype">int</span> getXFlotte(<span class="keywordtype">int</span> flotte) <span class="keyword">const</span>;
<a name="l00145"></a>00145         <span class="keywordtype">int</span> getYFlotte(<span class="keywordtype">int</span> flotte) <span class="keyword">const</span>;
<a name="l00146"></a>00146         <span class="keywordtype">void</span> setXFLotte(<span class="keywordtype">int</span> flotte, <span class="keywordtype">int</span> x);
<a name="l00147"></a>00147         <span class="keywordtype">void</span> setYFlotte(<span class="keywordtype">int</span> flotte, <span class="keywordtype">int</span> y);
<a name="l00148"></a>00148         <span class="keywordtype">void</span> setPositionFlotte(<span class="keywordtype">int</span> flotte, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00149"></a>00149         <span class="keywordtype">int</span> getIndiceFlotteCourante() <span class="keyword">const</span>;
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 };
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 11 2012 23:30:05 for Space Battle by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
